<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>商品管理</title>
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <script src="/assets/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
    <link href="/assets/css/main.css" rel="stylesheet">
</head>
<body>

<div>
    <div class="container">
        <nav class="navbar navbar-expand-lg bg-body-tertiary">
            <div class="container-fluid">
                <a class="navbar-brand" href="#">焕新网</a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarScroll">
                    <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px;">
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" href="#" th:href="@{'/administratorlist?uid='+${administrator.id}}">首页</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#" th:href="@{'/commonlist?uid='+${administrator.id}}">用户管理</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link" href="#" th:href="@{'/commoditycontrol?uid='+${administrator.id}}">商品管理</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
    <form th:each="commodity:${list}" th:action="'/down?cid='+${commodity.id}+'&uid='+${administrator.id}" th:method="post">
        <img th:src="${commodity.getAvatar1()}" class="img-size" alt="图片">
        <br><label th:text="${commodity.getName()}" ></label>
        <button type="submit" >下架</button>
    </form>

</div>

</body>
</html>